3.1.75 \(\int \cos (c+d x) \sqrt {b \sec (c+d x)} \, dx\) [75]

Optimal. Leaf size=39 \[ \frac {2 b E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \]

[Out]

2*b*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2))/d/cos(d*x+c)^(1/2)/(
b*sec(d*x+c))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {16, 3856, 2719} \begin {gather*} \frac {2 b E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cos[c + d*x]*Sqrt[b*Sec[c + d*x]],x]

[Out]

(2*b*EllipticE[(c + d*x)/2, 2])/(d*Sqrt[Cos[c + d*x]]*Sqrt[b*Sec[c + d*x]])

Rule 16

Int[(u_.)*(v_)^(m_.)*((b_)*(v_))^(n_), x_Symbol] :> Dist[1/b^m, Int[u*(b*v)^(m + n), x], x] /; FreeQ[{b, n}, x
] && IntegerQ[m]

Rule 2719

Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)*(c - Pi/2 + d*x), 2], x] /; FreeQ[{
c, d}, x]

Rule 3856

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Dist[(b*Csc[c + d*x])^n*Sin[c + d*x]^n, Int[1/Sin[c + d
*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]

Rubi steps

\begin {align*} \int \cos (c+d x) \sqrt {b \sec (c+d x)} \, dx &=b \int \frac {1}{\sqrt {b \sec (c+d x)}} \, dx\\ &=\frac {b \int \sqrt {\cos (c+d x)} \, dx}{\sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}\\ &=\frac {2 b E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.04, size = 39, normalized size = 1.00 \begin {gather*} \frac {2 b E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {\cos (c+d x)} \sqrt {b \sec (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cos[c + d*x]*Sqrt[b*Sec[c + d*x]],x]

[Out]

(2*b*EllipticE[(c + d*x)/2, 2])/(d*Sqrt[Cos[c + d*x]]*Sqrt[b*Sec[c + d*x]])

________________________________________________________________________________________

Maple [C] Result contains complex when optimal does not.
time = 27.28, size = 303, normalized size = 7.77

method result size
default \(\frac {2 \left (i \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \EllipticF \left (\frac {i \left (\cos \left (d x +c \right )-1\right )}{\sin \left (d x +c \right )}, i\right )-i \cos \left (d x +c \right ) \EllipticE \left (\frac {i \left (\cos \left (d x +c \right )-1\right )}{\sin \left (d x +c \right )}, i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sin \left (d x +c \right )+i \EllipticF \left (\frac {i \left (\cos \left (d x +c \right )-1\right )}{\sin \left (d x +c \right )}, i\right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \sin \left (d x +c \right )-i \EllipticE \left (\frac {i \left (\cos \left (d x +c \right )-1\right )}{\sin \left (d x +c \right )}, i\right ) \sin \left (d x +c \right ) \sqrt {\frac {1}{\cos \left (d x +c \right )+1}}\, \sqrt {\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}-\left (\cos ^{2}\left (d x +c \right )\right )+\cos \left (d x +c \right )\right ) \sqrt {\frac {b}{\cos \left (d x +c \right )}}}{d \sin \left (d x +c \right )}\) \(303\)
risch \(-\frac {i \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) \sqrt {2}\, \sqrt {\frac {b \,{\mathrm e}^{i \left (d x +c \right )}}{{\mathrm e}^{2 i \left (d x +c \right )}+1}}\, {\mathrm e}^{-i \left (d x +c \right )}}{d}-\frac {i \left (-\frac {2 \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}+b \right )}{b \sqrt {{\mathrm e}^{i \left (d x +c \right )} \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}+b \right )}}+\frac {i \sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}\, \sqrt {2}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}\, \sqrt {i {\mathrm e}^{i \left (d x +c \right )}}\, \left (-2 i \EllipticE \left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )+i \EllipticF \left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {{\mathrm e}^{3 i \left (d x +c \right )} b +b \,{\mathrm e}^{i \left (d x +c \right )}}}\right ) \sqrt {2}\, \sqrt {\frac {b \,{\mathrm e}^{i \left (d x +c \right )}}{{\mathrm e}^{2 i \left (d x +c \right )}+1}}\, \sqrt {b \,{\mathrm e}^{i \left (d x +c \right )} \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )}\, {\mathrm e}^{-i \left (d x +c \right )}}{d}\) \(319\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)*(b*sec(d*x+c))^(1/2),x,method=_RETURNVERBOSE)

[Out]

2/d*(I*sin(d*x+c)*cos(d*x+c)*(1/(cos(d*x+c)+1))^(1/2)*(cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*EllipticF(I*(cos(d*x+c
)-1)/sin(d*x+c),I)-I*cos(d*x+c)*EllipticE(I*(cos(d*x+c)-1)/sin(d*x+c),I)*(1/(cos(d*x+c)+1))^(1/2)*(cos(d*x+c)/
(cos(d*x+c)+1))^(1/2)*sin(d*x+c)+I*EllipticF(I*(cos(d*x+c)-1)/sin(d*x+c),I)*(1/(cos(d*x+c)+1))^(1/2)*(cos(d*x+
c)/(cos(d*x+c)+1))^(1/2)*sin(d*x+c)-I*EllipticE(I*(cos(d*x+c)-1)/sin(d*x+c),I)*sin(d*x+c)*(1/(cos(d*x+c)+1))^(
1/2)*(cos(d*x+c)/(cos(d*x+c)+1))^(1/2)-cos(d*x+c)^2+cos(d*x+c))*(b/cos(d*x+c))^(1/2)/sin(d*x+c)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*sec(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

integrate(sqrt(b*sec(d*x + c))*cos(d*x + c), x)

________________________________________________________________________________________

Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.56, size = 63, normalized size = 1.62 \begin {gather*} \frac {i \, \sqrt {2} \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - i \, \sqrt {2} \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*sec(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

(I*sqrt(2)*sqrt(b)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin(d*x + c))) - I*sqrt(
2)*sqrt(b)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))))/d

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {b \sec {\left (c + d x \right )}} \cos {\left (c + d x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*sec(d*x+c))**(1/2),x)

[Out]

Integral(sqrt(b*sec(c + d*x))*cos(c + d*x), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)*(b*sec(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(sqrt(b*sec(d*x + c))*cos(d*x + c), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \cos \left (c+d\,x\right )\,\sqrt {\frac {b}{\cos \left (c+d\,x\right )}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)*(b/cos(c + d*x))^(1/2),x)

[Out]

int(cos(c + d*x)*(b/cos(c + d*x))^(1/2), x)

________________________________________________________________________________________